<%@ Page Theme="BlueSkin" Title="LMS : Admin --> Faq edit" Language="C#" MasterPageFile="~/LmsWebSite/MasterEN.master" AutoEventWireup="true" CodeFile="FaqEditEN.aspx.cs" Inherits="FaqEditEN" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:UpdatePanel ID="up1" runat="server" >
    <ContentTemplate>
        <asp:UpdateProgress ID="uprogress1" runat="server">
            <ProgressTemplate>
            
                <div style="position:fixed;width:30px;height:30px;top:0px;right:0px;border:1px solid orange;">
                    <img src="images/loading.gif" style="width:30px;height:30px;"  alt='Loading' title='Loading'/>
                </div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    
        
<table cellspacing="5" cellpadding="5" width="100%">
        <tr>
            <td align="left" class="heading">
                Admin --> Faq edit
            </td>
        </tr>
    </table>
    <br />
    
    <div class="aligning allWidth floating direction" style="margin-bottom:10px;">
        <div class="floating" style="font-size:1px;width:30px;height:1px;"></div>
        <div class="floating direction aligning" style="width:300px;">
            <asp:TextBox ID="txtSearch" runat="server" Width="300px"></asp:TextBox>
           
        </div>
        <div class="floating" style="font-size:1px;width:11px;height:1px;"></div>
        <div class="floating direction aligning" style="width:100px;">
            <asp:Button ID="btnSearch" runat="server" Text="Search" 
                onclick="btnSearch_Click" CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
        
        </div>
            
        
        
        <div class="clearing"></div>
        <div class="aligning allWidth floating direction">
            <asp:GridView DataKeyNames="ID" ID="grdUsers" runat="server" style="margin:30px;" 
                AutoGenerateColumns="False" AllowPaging="True" 
                 onrowdeleting="grdUsers_RowDeleting" Font-Size="12px" 
                onpageindexchanging="grdUsers_PageIndexChanging" 
                onrowediting="grdUsers_RowEditing" Width="840px" 
                EnableModelValidation="True">
                <HeaderStyle HorizontalAlign="Center" />
                
                <RowStyle HorizontalAlign="Center" />
                <EmptyDataTemplate>
                <div class="aligning floating direction" style="width:840px;">
                    <asp:Label ID="Label2" runat="server" Text="Label" >No Faq found</asp:Label> 
                    <br />
                    <br />
                    
                </div>
                    
                </EmptyDataTemplate>
                <Columns>
                    <asp:TemplateField HeaderStyle-CssClass="gridRowStyle" ItemStyle-CssClass="gridRowStyle">
                        <HeaderTemplate>
                            <asp:Label ID="lblFaqQuestionARHead" runat="server" Text="Question in Arabic" Width="120px" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                            
                           <asp:Label ID="lblFaqQuestionARItem" runat="server" Text='<%#  Eval ("FaqQuestionAR") %>' Width="120px" style="margin-top:10px;margin-bottom:10px;"></asp:Label>
                                                     
                        </ItemTemplate>
                        <HeaderStyle CssClass="gridRowStyle" />
                        <ItemStyle CssClass="gridRowStyle" />
                    </asp:TemplateField>
                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblFaqQuestionENHead" runat="server" Text="Question in english" Width="120px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:Label ID="lblFaqQuestionENItem" runat="server" Text='<%#  Eval ("FaqQuestionEN") %>' Width="120px"></asp:Label>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>
                   
                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblFaqAnswerENHead" runat="server" Text="Answer in english" Width="120px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:TextBox ID="lblFaqAnswerENItem" runat="server" Text='<%#  Eval ("FaqAnswerEN") %>' Width="120px" Height="80px" TextMode="MultiLine" ReadOnly="true" ></asp:TextBox>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>


                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Label ID="lblFaqAnswerARHead" runat="server" Text="Answer in Arabic" Width="120px"></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           <asp:TextBox ID="lblFaqAnswerARItem" runat="server" Text='<%#  Eval ("FaqAnswerAR") %>' Width="120px" Height="80px" TextMode="MultiLine" ReadOnly="true" ></asp:TextBox>
                                                     
                        </ItemTemplate>
                    </asp:TemplateField>




                    
                    <asp:TemplateField>
                        <HeaderTemplate>
                                <asp:Label ID="lblActionsHead" runat="server" Text="Action" ></asp:Label>
                        </HeaderTemplate>
                        <ItemTemplate>
                           
                                <asp:LinkButton ID="lnkEdit" runat="server" CausesValidation="false" CommandName="Edit" CommandArgument='<%# Container.DataItemIndex %>'   Text="Edit"></asp:LinkButton>
                          
                                &nbsp;&nbsp;
                                
                                 <asp:LinkButton ID="lnkDelete" runat="server"  CommandName="Delete" CommandArgument='<%# Container.DataItemIndex %>' OnClientClick="javascript:return confirm ('Do you really want to delete this faq ?');"   Text="Delete" CausesValidation="false"></asp:LinkButton>
                                  
                                                 
                        </ItemTemplate>
                        
                        
                    </asp:TemplateField>
                    
                    
                    
                    
                    
                        
                           
                        
               
                
                
                
                </Columns>
                
                
            </asp:GridView>
        </div>
        
        
        
        
        <div class="clearing" style="width:1px;height:20px;"></div>
        
        
        <div class="allWidthWithMargins"  style="margin:30px;font-size:14px;">
        
         <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblFaqQuestionEN" runat="server" Text="Question in English *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtFaqQuestionEN" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvFaqQuestionEN" runat="server" ErrorMessage="You must enter a question in arabic" ControlToValidate="txtFaqQuestionEN">*</asp:RequiredFieldValidator>
        </div>
        
        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblFaqQuestionAR" runat="server" Text="Question in Arabic *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtFaqQuestionAR" runat="server" Text="" style="width:250px;"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvFaqQuestionAR" runat="server" ErrorMessage="You must enter a question in English" ControlToValidate="txtFaqQuestionAR">*</asp:RequiredFieldValidator>
        </div>


        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblFaqAnswerEN" runat="server" Text="Answer in English *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtFaqAnswerEN" runat="server" Text="" style="width:250px;height:80px;" TextMode="MultiLine"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvFaqAnswerEN" runat="server" ErrorMessage="You must enter an answer in English" ControlToValidate="txtFaqAnswerEN">*</asp:RequiredFieldValidator>
        </div>


        <div class="clearing" style="height:10px;width:1px;"></div>
        
        
        <div class="floating aligning direction" style="width:200px;">
            <asp:Label ID="lblFaqAnswerAR" runat="server" Text="Answer in Arabic *"></asp:Label>
        </div>        
        
       <div class="floating aligning direction" style="width:250px;">
           <asp:TextBox ID="txtFaqAnswerAR" runat="server" Text="" style="width:250px;height:80px;" TextMode="MultiLine"></asp:TextBox>
        </div>  
       <div class="floating aligning direction" >
           <asp:RequiredFieldValidator ID="rfvFaqAnswerAR" runat="server" ErrorMessage="You must enter an answer in Arabic" ControlToValidate="txtFaqAnswerAR">*</asp:RequiredFieldValidator>
        </div>


        
        <div class="clearing" style="width:1px;height:30px;"></div>
        
        <div class="floating direction" style="width:500px;text-align:right">
            
            <div style="float:right;"><asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/></div>
            <div style="float:right;font-size:1px;width:5px;height:1px;"></div>
            <div style="float:right;">
                <asp:Button ID="btnDelete" runat="server" Text="Delete" 
                OnClientClick="javascript:return confirm('Are you sure , you want to delete faq ?');" 
                onclick="btnDelete_Click" style="height: 26px" CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/></div>
            
            <div style="float:right;font-size:1px;width:5px;height:1px;"></div>
            <div style="float:right;">
                <asp:Button ID="btnNew" runat="server" Text="New" 
                 onclick="btnNew_Click" CausesValidation="false" BorderStyle="Solid" BorderColor="Orange" BackColor="DarkOrange" ForeColor="White"/>
            </div>
           
            
            <div class="clearing"></div>
            
        
        </div>
        
        <div class="clearing" style="width:1px;height:20px;"></div>
        
        <div class="allWidth floating direction" style="text-align:right;">
            
        </div>
        
        
        <div class="clearing"></div>
        
        <div class="aligning allWidth floating direction">
            <asp:Label ID="lblError" runat="server" Text="" ForeColor="Red" style="margin-left:30px;" EnableViewState ="false"></asp:Label>
            <div class="clearing"></div>
            <asp:Label ID="lblResult" runat="server" Text="" ForeColor="Green" style="margin-left:30px;" EnableViewState="false"></asp:Label>
            
            <div class="clearing"></div>
        </div>
        
        <div class="clearing"></div>
        <div class="aligning allWidth floating direction">
            <asp:ValidationSummary ID="vsError" runat="server" />
            
            <div class="clearing"></div>
        </div>
        
        <div class="clearing"></div>
      </div>  
      
      <div class="clearing"></div>
    </div>
    
    
    
    <div class="clearing"></div>
    </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

